home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2893 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1023 b 

  1. Path: lrz-muenchen.de!sun2!ua302aa
  2. From: ua302aa@sun2.lrz-muenchen.de (Kurt Watzka)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Open database.mdb, HOW ?
  5. Date: 24 Jan 1996 19:22:30 GMT
  6. Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
  7. Distribution: world
  8. Message-ID: <4e60tm$m3r@sparcserver.lrz-muenchen.de>
  9. References: <3105FA8E.7C00@hobbe.adb.gu.se>
  10. NNTP-Posting-Host: sun2.lrz-muenchen.de
  11.  
  12. Peter Bohn <a94bohn@hobbe.adb.gu.se> writes:
  13.  
  14. >Hello !!!
  15. >How do I open a *.mdb file created in Access 2.0 with c-coding.
  16. >I'm sitting here with MS C++ 4.0.
  17.  
  18. >Get me started with some line please. :)
  19.  
  20.   FILE *fp;
  21.  
  22.   fp = fopen("foo.mdb", "rb");
  23.   if (!fp) {
  24.      /* Handle file opening error */
  25.   }
  26.  
  27.   /* Process file. Note that you will have to look up the format 
  28.      of an Access 2.0 file to do that properly */
  29.  
  30.   fclose(fp);
  31.  
  32. Answer not apropriate for this group: Have a look at ODBC!
  33.  
  34. Kurt
  35. --
  36. | Kurt Watzka                             Phone : +49-89-2180-6254
  37. | watzka@stat.uni-muenchen.de
  38. | ua302aa@sunmail.lrz-muenchen.de
  39.  
  40.